Fix Claude Code Review workflow: use built-in review#208
Conversation
The plugin-based review setup is broken — the plugin tries to call gh api via the Bash tool, which the action sandbox blocks by default. Removing in favor of the working default claude.yml (@claude mentions). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. 🎉 WalkthroughUpdated the Claude Code Review GitHub Actions workflow: removed commented path filters, changed pull-request and issues permissions to write, upgraded actions/checkout to v6, and simplified the Claude Code Review step with Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
…n plugin Replace the plugin-based review (which fails because the sandbox blocks Bash tool access) with the built-in review_triggered_on and use_sticky_comment options. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The action auto-detects review mode from the pull_request trigger. Only use_sticky_comment and prompt are needed. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In @.github/workflows/claude-code-review.yml:
- Around line 27-28: The workflow uses an invalid input review_triggered_on for
the anthropics/claude-code-action@v1 action so automatic PR reviews never run;
remove the review_triggered_on key and instead supply a valid prompt input
(e.g., a short prompt string to trigger automatic review) while keeping
use_sticky_comment: true; update the action block that references
anthropics/claude-code-action@v1 to include prompt: "<your review prompt here>"
and remove review_triggered_on to ensure the action runs in automatic mode.
- Around line 27-28: Replace the invalid input key review_triggered_on with the
proper prompt input expected by the action: set prompt to include the repository
and pull request number (e.g. use the GitHub context variables like ${{
github.repository }} and ${{ github.event.pull_request.number }}), keep
use_sticky_comment: true, and ensure the workflow trigger is pull_request
(opened, synchronize) so the action will run automatically in automation mode;
consult action.yml to confirm the prompt input name and signature and update the
workflow step that currently references review_triggered_on to use prompt
instead.
Summary
claude-code-review.ymlworkflow to use the built-in review instead of the broken plugin approachgh apivia the Bash tool, which the action's sandbox blocksplugin_marketplaces/plugins/promptwithreview_triggered_on: pranduse_sticky_comment: trueTest plan
🤖 Generated with Claude Code
Summary by CodeRabbit